<template>
    <div>
        <el-image
                style="width: 300px; height: 300px"
                :src="photo"
                fit="'fill', 'contain', 'cover', 'none', 'scale-down'"></el-image>
    </div>
</template>

<script>
    export default {
        name: "showPhoto",
        props:['empPicture'],
        data(){
            return{
                photo:this.empPicture
            }
        },
        watch:{
            empPicture:function () {
                this.photo=this.empPicture
            }
        }
    }
</script>

<style scoped>

</style>